//
//  BVCommunityDetailCell2.m
//  XiangYu
//
//  Created by YYKJ on 2017/8/7.
//  Copyright © 2017年 YYKJ. All rights reserved.
//

#import "BVCommunityDetailCell2.h"

@implementation BVCommunityDetailCell2

-(void)makeSubViews{
    
    self.avatar = [[UIImageView alloc]init];
    [self.contentView addSubview:self.avatar];
    [UIView makeCorner:20.0 view:self.avatar];
    self.avatar.sd_layout
    .leftSpaceToView(self.contentView, 10)
    .topSpaceToView(self.contentView, 10)
    .widthIs(40)
    .heightEqualToWidth();
    
    self.nickNameLb = [[UILabel alloc]init];
    [self.contentView addSubview:self.nickNameLb];
    [self.nickNameLb setTextColor:[UIColor BVTextDarkGrayColor]];
    [self.nickNameLb setFont:[UIFont systemFontOfSize:16]];
    self.nickNameLb.sd_layout
    .topSpaceToView(self.contentView, 10)
    .leftSpaceToView(self.avatar, 10)
    .rightSpaceToView(self.contentView, 10)
    .heightIs(15);
    
    self.timeLb = [[UILabel alloc]init];
    [self.contentView addSubview:self.timeLb];
    [self.timeLb setTextColor:[UIColor BVTextGrayColor]];
    [self.timeLb setFont:[UIFont systemFontOfSize:14]];
    self.timeLb.sd_layout
    .topSpaceToView(self.nickNameLb, 5)
    .leftSpaceToView(self.avatar, 10)
    .rightSpaceToView(self.contentView, 10)
    .heightIs(15);
    
    self.contentLb = [[UILabel alloc]init];
    [self.contentView addSubview:self.contentLb];
    [self.contentLb setFont:[UIFont systemFontOfSize:14]];
    [self.contentLb setTextColor:[UIColor BVTextGrayColor]];
    self.contentLb.sd_layout
    .topSpaceToView(self.timeLb, 5)
    .leftSpaceToView(self.avatar, 10)
    .rightSpaceToView(self.contentView, 15)
    .autoHeightRatio(0);
    
    [self.avatar setImage:[UIImage imageNamed:@"999k"]];
    [self.nickNameLb setText:@"相遇"];
    [self.timeLb setText:@"2017/07/08"];
    [self.contentLb setText:@"这段文字测试使用"];
    
}

@end
